import request from '@/utils/request'

// 查询月分红信息列表
export function listMonthlyDividend(query) {
  return request({
    url: '/trade/monthlyDividend/list',
    method: 'get',
    params: query
  })
}

// 查询月分红信息详细
export function getMonthlyDividend(id) {
  return request({
    url: '/trade/monthlyDividend/' + id,
    method: 'get'
  })
}

// 新增月分红信息
export function addMonthlyDividend(data) {
  return request({
    url: '/trade/monthlyDividend',
    method: 'post',
    data: data
  })
}

// 修改月分红信息
export function updateMonthlyDividend(data) {
  return request({
    url: '/trade/monthlyDividend',
    method: 'put',
    data: data
  })
}

// 删除月分红信息
export function delMonthlyDividend(id) {
  return request({
    url: '/trade/monthlyDividend/' + id,
    method: 'delete'
  })
}
